﻿using Forum.Model.Entity;
using Forum.Model.Response;

namespace Forum.Service.Interface
{
    public interface IBlogService
    {
        BlogOverviewResp Overview();
        Post? GetTopOnePost();
        List<Post> GetFeaturedPosts();
        FeaturedPost AddFeaturedPost(Post post);
        bool DeleteFeaturedPost(Post post);
        (TopPost, int) SetTopPost(Post post);
        bool DeleteTopPost(Post post);
        /// <summary>
        /// 查询时间线
        /// </summary>
        /// <returns></returns>
        List<TimeLineResp> GetTimeLines();
    }
}
